-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dictionary Benchmarks #2705
Dictionary Benchmarks #2705
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2705 +/- ##
==========================================
+ Coverage 55.30% 55.33% +0.02%
==========================================
Files 352 352
Lines 67326 67326
Branches 13806 13806
==========================================
+ Hits 37235 37253 +18
+ Misses 26005 25993 -12
+ Partials 4086 4080 -6 ☔ View full report in Codecov by Sentry. |
|
||
/// <summary> | ||
/// Tests performance and memory usage of ImmutableDictionary. | ||
/// </summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
public abstract class DictionaryKeyBenchmark<T> | ||
{ | ||
// [Params(16, 128, 1024)] | ||
public int NumElements { get; set; } = 1024; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re add size parameter
public int NumElements { get; set; } = 1024; | ||
|
||
// Create a Dictionary and a SortedDictionary | ||
protected T[] m_lookup = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
|
||
/// <summary> | ||
/// Tests performance and memory usage of SortedDictionary. | ||
/// </summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
Bumps [BenchmarkDotNet](https://github.com/dotnet/BenchmarkDotNet) from 0.13.12 to 0.14.0. - [Release notes](https://github.com/dotnet/BenchmarkDotNet/releases) - [Commits](dotnet/BenchmarkDotNet@v0.13.12...v0.14.0) --- updated-dependencies: - dependency-name: BenchmarkDotNet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
…-0.14.0' into dictbenchmarks
|
Proposed changes
Dictionary<NodeId,value>
Related Issues
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that apply. You can also fill these out after creating the PR.Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
NodeId Dictionary Benchmarks: For each IdType, last one is with mixed NodeId.